From 1468e44793ea738c02a2625b24179d3f5fd5983e Mon Sep 17 00:00:00 2001 From: robertl Date: Sat, 16 Nov 2002 03:06:08 +0000 Subject: [PATCH] Honor unknown alt (make zero) on upload. --- gpsbabel/magproto.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gpsbabel/magproto.c b/gpsbabel/magproto.c index c8fb6f964..9011e017d 100644 --- a/gpsbabel/magproto.c +++ b/gpsbabel/magproto.c @@ -981,7 +981,8 @@ mag_waypt_pr(const waypoint *waypointp) sprintf(obuf, "PMGNWPL,%4.3f,%c,%09.3f,%c,%07.lf,M,%-.8s,%-.30s,%s", lat, ilon < 0 ? 'N' : 'S', lon, ilat < 0 ? 'E' : 'W', - waypointp->position.altitude.altitude_meters, + waypointp->position.altitude.altitude_meters == unknown_alt ? + 0 : waypointp->position.altitude.altitude_meters, owpt, odesc, icon_token); -- 2.30.2